home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 6_functions / umask < prev    next >
Text File  |  2001-03-21  |  731b  |  25 lines

  1. Synopsis:
  2.    $umask(<mask>)
  3.  
  4. Technical:
  5.    This function sets the default file umask used when creating and writing
  6.    files with EPIC's builtin file functions.  The umask sets the permission
  7.    bits to block when writing.  Essentially, the resultant permission bits
  8.    would be the default minus the umask.
  9.  
  10. Practical:
  11.    This function is used to set the default file permissions.  The $chmod()
  12.    function is affected by it.
  13.  
  14. Returns:
  15.    previous umask, or nothing if no new umask is given
  16.  
  17. Examples:
  18.    $umask(77)                 sets default permissions to 700
  19.    $umask(2)                  sets default permissions to 775
  20.    $umask()                   error, no mask, returns nothing
  21.  
  22. See Also:
  23.    chmod(6)
  24.  
  25.